package com.quad.innovators.salesease.model.form.tag;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serializable;

/**
 * @author cheng
 */
@Schema(description = "标签对象")
@Data
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public class TagForm implements Serializable {

    @Schema(description = "标签code")
    private String code;

    @Schema(description = "标签名称")
    @NotBlank(message = "标签名称不能为空")
    private String name;

    @Schema(description = "标签状态 0-启用 1-禁用")
    private Integer status;

    @Schema(description = "描述")
    private String description;
}
